import 'package:connectivity/connectivity.dart';
import 'package:json_annotation/json_annotation.dart';

part 'app.g.dart';

@JsonSerializable()
class App {
  ConnectivityResult netWork = ConnectivityResult.none;
  String themeType = "light";

  App({this.netWork,this.themeType});

  App.empty();

  //不同的类使用不同的mixin即可
  factory App.fromJson(Map<String, dynamic> json) => _$AppFromJson(json);

  Map<String, dynamic> toJson() => _$AppToJson(this);
}
